package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: invictusQAQ
 * @Date: 2023-09-06-19:59
 * @Description: 秒杀券
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SeckillVoucher {

    private static final long serialVersionUID = 1L;

    //主键
    private Long id;

    //库存
    private Integer stock;

    //代金券标题
    private String title;

    //副标题
    private String subTitle;

    //使用规则
    private String rules;

    //支付金额
    private Long payValue;

    //抵扣金额
    private Long actualValue;

    //优惠劵类型 1为秒杀券
    private Integer type;

    //优惠券状态
    private Integer status;

    //创建时间
    private LocalDateTime createTime;

    //生效时间
    private LocalDateTime beginTime;

    //失效时间
    private LocalDateTime endTime;

    //更新时间
    private LocalDateTime updateTime;

    //创建人
    private Long createUser;

    //修改人
    private Long updateUser;
}
